package flextv.main.logic {


import com.adobe.cairngorm.control.FrontController;

import flextv.core.event.PlayItemEvent;
import flextv.main.command.AddPlaylistCommand;
import flextv.main.command.AddSearchItemCommand;
import flextv.main.command.DeleteStoredItemCommand;
import flextv.main.command.DeletePlaylistCommand;
import flextv.main.event.AddPlaylistEvent;
import flextv.main.event.DeleteStoredItemEvent;
import flextv.main.event.DeletePlaylistEvent;
import flextv.search.command.InvokeSearchCommand;
import flextv.search.event.AddSearchItemEvent;
import flextv.search.event.InvokeSearchEvent;
import flextv.display.command.PlayItemCommand;


public class Controller extends FrontController {
	
	public function Controller() {
		
		this.addCommand(AddSearchItemEvent.ADD_SEARCH_ITEM, AddSearchItemCommand);
		this.addCommand(DeleteStoredItemEvent.DELETE_ITEM, DeleteStoredItemCommand);
		
		this.addCommand(AddPlaylistEvent.ADD_PLAYLIST, AddPlaylistCommand);
		this.addCommand(DeletePlaylistEvent.DELETE_PLAYLIST, DeletePlaylistCommand);
		
		this.addCommand(InvokeSearchEvent.INVOKE_SEARCH, InvokeSearchCommand);
		
		this.addCommand(PlayItemEvent.PLAY_ITEM, PlayItemCommand);
		
		
	}
	
}
}